package com.example.validation.exception;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * 统一错误响应结构
 */
@Setter
@Getter
public class ErrorResponse {
    // Getters and Setters
    private int status;
    private String message;
    private List<String> details;
    private Date timestamp;

    public ErrorResponse(int status, String message, List<String> details, Date timestamp) {
        this.status = status;
        this.message = message;
        this.details = details;
        this.timestamp = timestamp;
    }

}
